package sq.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import sq.dao.Cart;

import java.util.List;


/**
 * Created with IntelliJ IDEA.
 *
 * @Author: sunquan
 * @Date: 2018/3/5
 * @Time: 14:16
 */
public interface CartRepository extends JpaRepository<Cart,Integer> {

    List<Cart> findAllByUserId(Integer userId);
    void deleteByUserId(Integer userId);

}
